import DefaultTheme from 'vitepress/theme'
import { AntDesignContainer } from '@vitepress-demo-preview/component'
import '@vitepress-demo-preview/component/dist/style.css'
import { EnhanceAppContext } from 'vitepress'
import weiUi from "@wei-ui/wei-ui"

export default {
    ...DefaultTheme,
    enhanceApp(ctx: EnhanceAppContext) {
        ctx.app.use(weiUi)
        ctx.app.component('demo-preview', AntDesignContainer)
    }
}
